home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000223_news@columbia.edu_Mon Apr 24 21:37:38 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA21862
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 25 Apr 1995 01:12:39 -0400
  3. Received: by apakabar.cc.columbia.edu id AA19354
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 25 Apr 1995 01:12:37 -0400
  5. Newsgroups: comp.protocols.kermit.misc
  6. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!fnnews.fnal.gov!gw1.att.com!gw2.att.com!oucsboss!snavely-pc.cns.ohiou.edu!undetermined
  7. From: snavelym@oumail1.email.ohiou.edu (Mike Snavely)
  8. Subject: Keyboard initiated macro
  9. X-Nntp-Posting-Host: snavely-pc.cns.ohiou.edu
  10. Message-Id: <D7K6qq.D8K@boss.cs.ohiou.edu>
  11. Sender: postmaster@snavely-pc.cns.ohiou.edu
  12. X-Nntp-Posting-Date: Mon Apr 24 17:37:36 1995
  13. Reply-To: snavelym@oumail1.email.ohiou.edu
  14. Organization: Ohio University
  15. X-Newsreader: WinVN 0.92.6+
  16. Date: Mon, 24 Apr 1995 21:37:38 GMT
  17. Lines: 51
  18. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  19.  
  20. Hello,
  21.  
  22. This question relates to a MS-Kermit trick that used to work for us
  23. with version 3.10 and 3.11, but stopped working when commands were
  24. obsoleted in version 3.12 or 3.13.
  25.  
  26. Here's what I used to do, and it worked rather nicely.  I have two 
  27. different keyboard mappings we use with MS-Kermit.  One is an IBM 
  28. mainframe mapping, another is a DEC VAX mapping.  I used to program
  29. MS-Kermit, such that CTRL-F1 would serve as a toggle.  If I pressed
  30. it once, it would toggle from IBM to DEC, if I pressed it again, it
  31. would toggle back from DEC to IBM.  I did that with the use of the
  32. pre-defined TERMINALR and TERMINALS macros.  See code below. 
  33.  
  34. Excerpt from MSKERMIT.INI file:
  35.  
  36.   assign \%i ibm.set
  37.   assign \%v dec.set
  38.   assign \%p keymap.ini
  39.   def terminalr take \%v,-
  40.    echo Keyboard switched to DEC settings \13,-
  41.    pause 2, connect
  42.   def terminals take \%i,-
  43.    echo Keyboard switched to IBM settings \13,-
  44.    pause 2, connect
  45.   def product take \%p, connect
  46.  
  47.  
  48. Furthermore, the KEYMAP.INI file allowed host-triggered ESCAPE sequences
  49. to perform the keyboard mapping swap on login and logout from the VAX.
  50.  
  51.  
  52. Each of the keyboard mapping files then had a definition for CTRL-F1
  53. that pointed to the appropriate macro.
  54.  
  55.  
  56. IBM.SET had the following line... 
  57.   set key  \1374 \Kterminalr     ; CTRL-F1 = Swap to DEC settings
  58.  
  59. DEC.SET had the following line...
  60.   set key  \1374 \Kterminals     ; CTRL-F1 = Switch to IBM settings
  61.  
  62. ----
  63.  
  64. Terminalr and Terminals are no longer supported.  I have tried a number
  65. of possible solutions and have yet to be completely satisfied.  
  66. Anybody have any suggestions?
  67.  
  68. Thanks in advance.
  69.  
  70. /Mike